#import "MyScrollView.h"
#import "DocView.h"
#import <appkit/Control.h>

@implementation MyScrollView

+newFrame:(const NXRect *)tF
{
	NXRect docRect;
	id myDocView;
	
	// Create the newScrollView
	self = [super newFrame:tF];
        [[self setVertScrollerRequired:YES]
	       setHorizScrollerRequired:YES];
	
	// Create and install the docView
	NXSetRect(&docRect, 0.0, 0.0, 500.0, 500.0);
	myDocView = [DocView newFrame:&docRect];
	[self setDocView:myDocView];
	
	return self;
}

